<%@ page language="java" import="java.util.*,com.dsz.entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>四色火无限集团</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <header>
	<%Companyinfo comp = (Companyinfo)session.getAttribute("comp"); %>
		<div class="header-top">
			<div class="width-center">
				<div class="header-logo ">
					<img src="images/log.jpg" alt="">
				</div>
				
				<div class="header-title div-inline">
					<strong><%=comp.getName() %></strong> <span>www.dsz.com</span>
				</div>
				<div class="search-box div-inline">
					<!--<div class="input-box">
        <form action="" method="post">
						<input type="text" name="usrname" placeholder="             请输入关键字">
 					</div>
					<input type="submit" class="search-botton" value="">-->
					<!-- <div class="search-botton" ></div> -->
		</form>
				</div>
			</div>
		</div>
		<div class="header-nav">
			<button class="am-show-sm-only am-collapsed font f-btn"
				data-am-collapse="{target: '.header-nav'}">
				Menu <i class="am-icon-bars"></i>
			</button>
			<nav>
				<ul class="header-nav-ul am-collapse am-in">
					<li class="on"><a href="CompanyinfoServlet?oid=1" name="index">首页</a>
					</li>
					<li><a href="DesignerServlet?oid=1" name="about">关于我们</a>
					</li>
					<li><a href="ProductServlet?oid=1" name="show">产品展示</a>
					</li>
					<li><a href="NewsServlet?oid=1" name="new">新闻资讯</a>
					</li>
					<li><a href="CompanyinfoServlet?oid=3" name="message">联系我们</a>
						<div class="secondary-menu">

							<ul>
								<li><a href="MessageServlet?oid=1" class="message"></a>
								</li>
							</ul>
						</div></li>
				</ul>
            </nav>
		</div>

	</header>
	<div class="am-slider am-slider-default"
		data-am-flexslider="{playAfterPaused: 8000}">
		<ul class="am-slides">
		<%ArrayList<Rotary> ro = (ArrayList<Rotary>)request.getAttribute("ro");
		for(Rotary r : ro){ %>
			<li><a href="ProductServlet?oid=2&pid=<%=r.getId() %>&fid=<%=r.getId() %>"><img src="<%=r.getPic() %>" style="height: 760px" alt=""></a>
			</li>
			<!-- <li><img src="img/bcl.jpg" alt="">
			</li>
			<li><img src="img/bcl1.jpg" alt="">
			</li>
			<li><img src="img/bm.jpg" alt="">
			</li> -->
			<%} %>
		</ul>
	</div>
  </body>
</html>
